import java.io.IOException;
import java.net.Socket;


public class ClienteCliente extends Thread{
	private String ip;
	  
    public ClienteCliente(String ip) {  
        this.ip = ip;  
    }  
  
    public void iniciar() {  
        try {    
           
            Socket socket = new Socket(ip, 7777);   
            Thread thread = new Cliente(socket);  
            thread.start();   
            Fala f  = new Fala(socket);
            f.start();
            Escuta e = new Escuta(socket);
            e.start();
            
        } catch (IOException e) {  
            System.out.println("Falha na Conexao... .. ." + " IOException: "  
                    + e);  
        }  
    }    
   
}
